package com.wanghua.mall.product.openfeign;

import com.wanghua.common.dto.SkuReductionDto;
import com.wanghua.common.dto.SpuBoundsDto;
import com.wanghua.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author wanghua
 * @create 2021-08-25 16:01
 */
@FeignClient("mall-coupon")
public interface CouponFeignClient {
    /**
     * 保存SpuBoundsDto
     */
    @PostMapping("/coupon/spubounds/save")
    R saveSpuBoundsDto(@RequestBody SpuBoundsDto spuBoundsDto);

    /**
     * 保存SkuReductionDto
     */
    @PostMapping("/coupon/skufullreduction/saveSkuReductionDto")
    void saveSkuReductionDto(@RequestBody SkuReductionDto skuReductionDto);
}
